package com.moshang.blog.service;

import com.moshang.blog.entity.ThirdLogin;

import java.util.Map;

/**
 * @program: blog
 * @description: ${description}
 * @author: xieweiwei
 * @create: 2018-10-18 10:50
 **/
public interface ThirdLoginService {
    ThirdLogin getInFo();
    /**
     * 获取ass_token
     * @param code
     * @return
     */
    Map<String, String> getTokenAsstoken(String code);
    /**
     * 使用Access Token来获取用户的OpenID
     * @param access_token
     * @return
     */
    Map<String, String> getOpenId(String access_token);
    /**
     * 获取用户
     * @param access_token
     * @param openid
     * @return
     */
    Map<String, String> getUserInfo(String access_token, String openid);

    String getAliAccessToken(String code);
}
